package com.gdpu.liou.symphonyserver.common.exception;

import com.gdpu.liou.symphonyserver.entity.respose.ResponseCode;

/**
 * 异常响应配置
 *
 * @author liuyx
 * @date 2022/5/19 10:28 周四
 */
public class ResponseException extends RuntimeException {
    private ResponseCode responseCode;

    public ResponseException(ResponseCode responseCode) {
        super(responseCode.getMessage());
        this.responseCode = responseCode;
    }

    public ResponseCode getResponseCode() {
        return responseCode;
    }
}
